package com.cogent.common.util;

import org.apache.log4j.Logger;

public class ClassReflectUtil {
	private static Logger _log = Logger.getLogger(ClassReflectUtil.class); 
	
	public static Object getNewInstance(String className) {
		Object obj = null;
		try {
			Class onwClass = Class.forName(className);
			obj = onwClass.newInstance();
		} catch (ClassNotFoundException e) {
			_log.error(e);
		} catch (InstantiationException e) {
			_log.error(e);
		} catch (IllegalAccessException e) {
			_log.error(e);
		}
		
		return obj;
	}

}